package org.dtrd.modules.doctor.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.dtrd.modules.doctor.entity.bean.DoctorStatisticsItem;
import org.dtrd.modules.doctor.entity.po.DtrdEntRdDoctorConcernPatient;

import java.util.List;
import java.util.Set;

/**
 * <p>
 * 患者重点关注记录表服务类
 * </p>
 *
 * @author xiao
 * @since 2022-06-17
 */
public interface IDtrdEntRdDoctorConcernPatientService extends IService<DtrdEntRdDoctorConcernPatient> {

    /**
     * 关注或取关患者
     *
     * @param doctorId
     * @param patientId
     * @param patientsCollected
     * @param orgCode
     * @return
     */
    boolean concernPatient(Integer doctorId, Integer patientId, Integer patientsCollected, String orgCode);

    /**
     * 统计医生重点关注患者数
     *
     * @param doctorId
     * @param orgCode
     * @return
     */
    List<DoctorStatisticsItem> getConcernPatientCount(Integer doctorId, String orgCode);

    /**
     * 根据医生ID查询重点关注记录
     *
     * @param doctorId
     * @return
     */
    List<DtrdEntRdDoctorConcernPatient> getConcernRecords(Integer doctorId);

    void deleteRecordByPatientIds(Set<Integer> patientIds);
}
